package com.briup.pts.mapper;


import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

public interface QrcodeMapper {

    @Delete("delete from manager_qrcode " +
            "where q_animal_id = #{animalId}")
    void deleteByAnimalId(String animalId);

    @Insert("insert into manager_qrcode (q_animal_id, q_image_url) " +
            "values (#{animalId},#{url})")
    void addQrcode(@Param("animalId") String animalId, @Param("url") String url);
}